<template>
  <div class>
    <common-header :title="'常见问题'" :showBack="true"></common-header>
    <div class="pages">
      <div class="panel active" id="scrollable">
        <div class="searchList">
          <div class="divs" v-for="(item,index) in list" :key="index">
            <div>{{item.label}}</div>
            <p>{{item.description}}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import user from '../../../services/user'
export default {
  data() {
    return {
      list: []
    };
  },
  name: 'problem',
  component: {},
  created() {
    this.getProblems()
  },
  methods: {
     // 获取常见问题
    getProblems(){
      let _param= this.$tools.invokeUAF('sys/optionbytypecode', {
        'uat': this.$tools.getMessage('uat'),
        'typecode': 'sys_cjwt'
      })
      user.optionbytypecode(_param).then(res => {
        let data = res.data.data;
        this.list = data  ;
      })
    },
  }
};
</script>

<style  lang="less" scoped>
.divs {
  padding: 0.266667rem 0.4rem;
  background: #fff;
  margin-bottom: 0.4rem;
  div {
    font-size: 0.4rem;
    color: #333333;
  }
  p {
    font-size: 0.346667rem;
    color: #a0a0a0;
    padding-top: 0.266667rem;
    margin-bottom: 0.4rem !important;
  }
}
</style>
